package com.myidis.response;

public class StatisticsRes {
	private String max;
	private String min;
	private String avg;
	private String stdev;
	private String mid;
	private String kurtosis;
	private String skewness;
	
	public StatisticsRes(double max, double min, double avg, double stdev, double mid, double kurtosis, double skewness) {
		super();
		
		this.max = format(max);
		this.min = format(min);
		this.avg = format(avg);
		this.stdev = format(stdev);
		this.mid = format(mid);
		this.kurtosis = format(kurtosis);
		this.skewness = format(skewness);
	}
	
	private String format(double x) {
		return String.format("%.4f", x);
	}
	
	public String getMax() {
		return max;
	}
	public void setMax(String max) {
		this.max = max;
	}
	public String getMin() {
		return min;
	}
	public void setMin(String min) {
		this.min = min;
	}
	public String getAvg() {
		return avg;
	}
	public void setAvg(String avg) {
		this.avg = avg;
	}
	public String getStdev() {
		return stdev;
	}
	public void setStdev(String stdev) {
		this.stdev = stdev;
	}
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public String getKurtosis() {
		return kurtosis;
	}
	public void setKurtosis(String kurtosis) {
		this.kurtosis = kurtosis;
	}
	public String getSkewness() {
		return skewness;
	}
	public void setSkewness(String skewness) {
		this.skewness = skewness;
	}
}
